import { CHANGEABOUTMONEYACTIVATE } from "../constants";

const initState = {
    aboutMoney_act: {
        activate: false,
        is_withdraw: false,
        is_recharge: false,
    }
}

export default function AboutMoneyReducer (preState = initState, action) {
    const { type, data } = action
    switch (type) {
        case CHANGEABOUTMONEYACTIVATE:
            return {
                ...preState,
                aboutMoney_act: Object.assign({}, preState.aboutMoney_act, data)
            }
        default:
            var state = preState
            return state
    }
}
